import React from "react";
import { Spin } from "antd";

class SpinLoading extends React.Component {
  render() {
    const { children, loading, tip } = this.props;

    return (

      <div>
        {loading ?
          <div className="spin-loading">
            <Spin spinning tip='加载中' wrapperClassName="page-loading" ></Spin>
          </div> :
          null}
      </div >

    )


  }
}

export default SpinLoading;
